package cn.edu.tju.elm.controller;

public class OrderRequest {
    private Business business;
    private DeliveryAddress deliveryAddress;

    public OrderRequest() {}

    public OrderRequest(Business business, DeliveryAddress deliveryAddress) {
        this.business = business;
        this.deliveryAddress = deliveryAddress;
    }

    public Business getBusiness() {
        return business;
    }

    public void setBusiness(Business business) {
        this.business = business;
    }

    public DeliveryAddress getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(DeliveryAddress deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public static class Business {
        private Integer id;

        public Business() {}

        public Business(Integer id) {
            this.id = id;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }
    }

    public static class DeliveryAddress {
        private Integer id;

        public DeliveryAddress() {}

        public DeliveryAddress(Integer id) {
            this.id = id;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }
    }
}